package com.xmg.shop.controller;

import com.xmg.shop.domain.Brand;
import com.xmg.shop.service.IBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Administrator on 2017/8/11.
 */
@Controller
public class BrandController {
	@Autowired
	private IBrandService brandService;

	@RequestMapping("brand")
	@ResponseBody
	private List<Brand> brandList() {

		return brandService.brandList();
	}
}
